﻿using PCLUntils.Json;
using SQLite;

namespace Bilibili.Common.Database.Table
{
    [Table("Cache")]
    public sealed class CacheDataTab
    {
        public CacheDataTab() { }
        public CacheDataTab(string key, object value)
        {
            Name = key;
            Content = value.ParseJson();
        }
        [PrimaryKey]
        public int Id { get; set; }
        public string Name { get; set; }
        public string Content { get; set; }
        public void Update(object value)
        {
            Content = value.ParseJson();
        }
    }
}